package com.mallcloud.mall.product.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

@ApiModel(value = "SpuAttrValueModel", description = "商品规格属性关联信息")
@Data
@TableName(value = "P_SPU_ATTR_VALUE", autoResultMap = true)
public class SpuAttrValueModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "商品属性值关联信息id")
    private Long spuAttrValueId;

    @ApiModelProperty(value = "商品id")
    private Long spuId;

    @ApiModelProperty(value = "规格属性id")
    private Long attrId;

    @ApiModelProperty(value = "规格属性名称")
    private String attrName;

    @ApiModelProperty(value = "规格属性值id")
    private Long attrValueId;

    @ApiModelProperty(value = "规格属性值名称")
    private String attrValueName;

    @ApiModelProperty(value = "规格属性描述")
    private String attrDesc;
}
